package com.ping.common;

public enum StatusCode {
/*	STATUSCODE("StatusCode", 1),
	RESULT("Result", 2),
	EXCEPTION_OCCURS_IN_OPERATIONS("操作过程发生异常，请向联系管理员反馈相关问题并解决！", 300),
	PARAMETER_LOST("参数缺失", 400),
	RESULT_NULL("结果为空", 500),
	NOT_PERMISSION("您所在分组无操作权限！", 101),
	OUT_VALID_TIME("您的验证已过期，请重新登陆！", 102),
	LOGIN_FAIL("登录失败，请重新登录！", 103),
	LOGIN_TIMES_OUTOFPERMISSION("您今天的登录失败次数已超过10次，如欲在今天内登录，请联系管理员解锁！", 104),
	IP_CHANGED("检测到IP地址发生变化，请重新登录！", 106),*/
	
	
	SUCCESS("操作成功", 10101, "success"),
	
	;
	
	private String desc;
	private int index;
	private String mark;
	
	private StatusCode(String desc, int index, String mark){
		this.desc = desc;
		this.index = index;
		this.mark = mark;
	}
	
	public int getIndex(){
		return this.index;
	}
	
	public String getDesc(){
		return this.desc;
	}
	
	public String print(){
		return this.index+":"+this.desc;
	}
}
